Skip to content

Conversation

@robertlaurin
Copy link
Contributor

@robertlaurin robertlaurin commented Dec 19, 2024

We don't know how to format gat, lets help the instrumentation do it properly.

Copy link
Contributor

@fbogsany fbogsany left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks gat to me!

@fbogsany fbogsany self-requested a review December 20, 2024 04:27
Copy link
Contributor

@fbogsany fbogsany left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like gat isn't supported in (one of?) the dalli version we test against. We should consider whether to bump the minimum version we support.

end

it 'supports gat' do
dalli.gat('foo')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gat was added to dalli in 3.0.0. We could skip if the dalli version is < 3.0.0 or set 3.0.0 as the min supported version.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My preference is to skip, since we only need it in this test, and the test matrix should cover 3.0.0.

end

it 'supports gat' do
dalli.gat('foo')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
dalli.gat('foo')
skip unless dalli.respond_to?(:gat)
dalli.gat('foo')

@robertlaurin robertlaurin enabled auto-merge (squash) January 14, 2025 20:21
@robertlaurin robertlaurin merged commit 06c8de0 into open-telemetry:main Jan 14, 2025
56 checks passed
This was referenced Jan 14, 2025
@robertlaurin robertlaurin deleted the fix-dalli-gat branch January 14, 2025 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants